{layout name="passport:layout" /}
<table class="pure-table mb5 w100-100">
<tbody>
    <tr>
        <td class="w330" rowspan="5" colspan="1"><img src="__STATIC__/{$info.miniapp_dir}/view.png" class="w300"></td>
        <td>
            <h4 class="fn-left">{$info.title}</h4>
            <span class="fn-right">{if $miniapp}<span class="badge bg-blue">已授权 {$miniapp} 个应用</span>{else}<span class="badge">未授权</span>{/if}</span></h4>
        </td>
    </tr>
    <tr><td colspan="1" rowspan="1">应用类型：
            {switch $info.types}
            {case mp}<span class="badge bg-blue">公众号</span>{/case}
            {case program}<span class="badge bg-green">小程序</span>{/case}
            {case app}<span class="badge bg-yellow">APP</span>{/case}
            {case mp_program}<span class="badge bg-red">小程序/公众号</span>{/case}
            {case mp_program_app}<span class="badge bg-red">小程序/公众号/APP</span>{/case}
            {default /}<span class="badge">应用异常</span>
            {/switch}  
    </td></tr>
    <tr><td colspan="1" rowspan="1">服务方式：{if $info.is_openapp}<span class="badge">独立应用</span>{else}<span class="badge">开放平台</span>{/if}</td></tr>
    <tr><td colspan="1" rowspan="1" class="fn-f16">销售价:￥<span class="red fn-f16">{$info.sell_price}</span></td></tr>    
    <tr><td colspan="1" rowspan="1"><a href="javascript:;" url="{:url('system/passport.appshop/buy',['input' => $info.id])}" class="gobuy button button-violet" /><i class="iconfont icon-cart"></i>立即购买</a></td></tr>
</tbody>
</table>
<div class="tipbox tipbox-error">
    <span class="fn-fb">应用描述:</span>
    <p class="gray">{$member_miniapp.miniapp.describe}</p>
</div>  
<div class="m5">{$info.content|dehtml|raw}</div>
<script type="text/javascript">
Do('base','layer','form',function () {
    $('#form').isForm();
    $(".gobuy").click(function(){
        $(this).win({
            'area':['400px','250px']
        });
    });
});
</script>